{extend name="common/base"}
{block name='title'}管理员页面{/block}
{block name='body-type'}admin_index{/block}
{block name="content"}
        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">
            <div class="row-content am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title  am-cf">管理员管理</div>


                            </div>
                            <div class="widget-body  am-fr">

                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                                    <div class="am-form-group">
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">
                                                <button type="button" class="am-btn am-btn-default am-btn-success" onclick="window.location.href='add'"><span class="am-icon-plus"></span> 新增</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>


                                <div class="am-u-sm-12">
                                    <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black " id="example-r">
                                        <thead>
                                            <tr>
                                                <th>序号</th>
                                                <th>管理员账号</th>
                                                <th>管理员头像</th>
                                                <th>管理员角色</th>
                                                <th>操作</th>
                                            </tr>
                                        </thead>
                                        <tbody id="ajax-body">
                                            {volist name="adminlist" id="adminlist" key="v"}
                                            <tr class="gradeX">
                                                <td>{$v}</td>
                                                <td>{$adminlist.account}</td>
                                                <td><img width="50" src="{$adminlist.head_img}" alt=""></td>
                                                <td>
                                                    {volist name="adminlist['role']" id="role_name"}
                                                    {$role_name}
                                                    {/volist}
                                                </td>
                                                <td>
                                                    <div class="tpl-table-black-operation">
                                                        <a href="{:Url('admin/admin/edit')}?id={$adminlist.id}">
                                                            <i class="am-icon-pencil"></i> 编辑权限
                                                        </a>
                                                        <a href="{:Url('admin/admin/delete')}?id={$adminlist.id}" class="tpl-table-black-operation-del">
                                                            <i class="am-icon-trash"></i> 删除
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr>
                                            {/volist}
                                            <!-- <tr class="gradeX">
                                                <td>轮播图缩略图</td>
                                                <td>排序</td>
                                                <td>跳转地址</td>
                                                <td>描述</td>
                                                <td>
                                                    <div class="tpl-table-black-operation">
                                                        <a href="{:Url('admin/ad/edit')}">
                                                            <i class="am-icon-pencil"></i> 编辑
                                                        </a>
                                                        <a href="{:Url('admin/ad/delete')}" class="tpl-table-black-operation-del">
                                                            <i class="am-icon-trash"></i> 删除
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr> -->
                                            <!-- more data -->
                                        </tbody>
                                    </table>
                                </div>
                                <div class="am-u-lg-12 am-cf">
                                    <div class="am-fr" id="ajax-page">
                                        {$page}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        {/block}
        {block name="footer-js"}

        {/block}